"""
This file is part of GSBEdit. For copyright and licensing information, please
see gsbedit.py in the GSBEdit base directory.
"""


import wx
import ui_elements.controls.attribute_control as ac
from copy import deepcopy as copy


class SpacerPanel(wx.Panel):
    def __init__(self, parent, panel_info):
        wx.Panel.__init__(self, parent)
        self.parent = parent
        
        self.spacer = wx.BoxSizer(wx.HORIZONTAL)        
        self.spacer.Add((0, 0), 1, wx.EXPAND)
        self.SetSizer(self.spacer)
    
    
    def set_module(self, module_info, module_values):
        # Don't bother making a local copy. It's not needed for the module
        # info, and we *want* value changes to be seen globally.
        pass
    
    
    def update_display(self):
        """Update the displayed panels based on the supplied module
        information.
        """
        self.Layout()

    
    def should_display(self):
        """Check if this panel should be displayed.
        """
        return None
    
    
    def have_values_changed(self):
        return False


    def save_values(self):
        pass
    
    
    def reset_displayed_values(self):
        pass
    
    def evt_value_updated(self, key, value, sender=None):
        pass

